package demo;

import java.util.Stack;

/**
 * @author ZhouWeiBo
 * @create 2022/6/7
 */
public class History {
    private Stack<String> historyStack = new Stack<>();

    public void Backup(String content){
        historyStack.add(content);
    }

    public String getLastVersion(){
        return historyStack.pop();
    }
}
